<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

    
    <script>
        // 2.创建一个对象 表示学生的信息 （具体信息可以自定义，需求不限）
        var ses = {
            name: "坤坤",
            age: 23,
            sex: "男",
            height: "178cm",
            weight: "80kg",
            hobby: "唱，跳，rap，篮球",
            time: "两年半",
            fun: function () {
                console.log(`大家好，我叫${ses.name},今年${ses.age}岁，练习时长${ses.time}的个人练习生，喜欢${ses.hobby}`)
            }
        };
        ses.fun();

    </script>
</body>

</html>